#pragma once

class string_manager
{
public:
	typedef map<wstring, wstring>	StrStr;
	struct FileNode
	{
		StrStr		m_Strs;
		wstring		m_strFileName;
		bool		m_bChanged;
	};
	
	typedef map<wstring, FileNode>	FilePair;

	static string_manager m_s_sm;

	FilePair	m_strFiles;
	

	string_manager(){}
	~string_manager(){}


	bool save_all();
	bool save_a_file(wstring aStrFileName);
	bool load_a_file(wstring aStrFileName, FileNode &fn);

	wstring		get_string(wstring aStrName);
private:
	void save_a_pair(IXMLDOMNode* aXmlNode, StrStr& aStrStr);
};